﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class AiLuoKe:Hero
    {
        //public AiLuoKe(string nickName)
        //{
        //    this.nickName = nickName;
        //    this.heroName = "埃洛克";
        //    this.heroInfo = "埃洛克是一名来自末日边境的勇士";
        //    this.attack = 80;
        //    this.defense = 65;
        //    this.speed = 35;
        //}
        public AiLuoKe() {
            //调用子类的构造方法之前，先调用父类的构造方法，为的是初始化父类的字段
            Console.WriteLine("我是子类埃洛克里的构造方法");
        }
        public AiLuoKe(string nickName,string heroName,string heroInfo,int attack,int defense,int speed)
            :base(nickName, heroName, heroInfo, attack, defense, speed)
        {

        }

        public void SuiShiDaJi()
        {
            Console.WriteLine("碎石打击");
        }

        public void LieYanMaoGou()
        {
            Console.WriteLine("烈焰锚钩");
        }

        public void ZhanDouPaoXiao()
        {
            Console.WriteLine("战斗咆哮");
        }
    }
}
